//
//  GYUploadLog.m
//  LockManagement
//
//  Created by apple on 2018/9/12.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYUploadLog.h"

@implementation GYUploadLog






#pragma mark -- 归档

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:_logTime forKey:@"logTime"];
    [aCoder encodeObject:_logType forKey:@"logType"];
    [aCoder encodeObject:_keyID forKey:@"keyID"];
    [aCoder encodeObject:_lockID forKey:@"lockID"];
    [aCoder encodeObject:_logState forKey:@"logState"];
    [aCoder encodeInt:_logID forKey:@"logID"];
}


- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        _logTime = [aDecoder decodeObjectForKey:@"logTime"];
        _logType = [aDecoder decodeObjectForKey:@"logType"];
        _keyID = [aDecoder decodeObjectForKey:@"keyID"];
        _lockID = [aDecoder decodeObjectForKey:@"lockID"];
        _logState = [aDecoder decodeObjectForKey:@"logState"];
        _logID = [aDecoder decodeIntForKey:@"logID"];
    }
    
    return self;
}
@end
